package com.lingnan.service.impl;

import com.lingnan.dao.ClazzDao;
import com.lingnan.entity.Clazz;
import com.lingnan.service.ClazzFeignService;
import com.lingnan.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClazzServiceImpl implements ClazzService {
    @Autowired
    private ClazzDao clazzDao;

    @Override
    public boolean insert(Clazz bean) {
        return clazzDao.insert(bean);
    }

    @Override
    public List<Clazz> queryAll() {
        return clazzDao.queryAll();
    }

    @Override
    public Clazz queryById(Integer id) {
        return clazzDao.queryById(id);
    }
}
